package com.leedsoft.service.entity;

import com.leedsoft.common.Enums;
import com.leedsoft.controller.vo.TaskJsonVo;
import com.leedsoft.domain.AidBpmNode;

/**
 * Created by leeds on 2017/6/20.
 */
public class NormalStep extends Step{
    @Override
    public void wireCoreNode(AidBpmNode node) {
        TaskJsonVo task = stepVo.getTaskJsonList().get(0);
        node.setAssignee(task.getAssignee());
        node.setType(Enums.NodeType.TASK.getCode().shortValue());
        node.setBrief(task.getBrief());
        task.setCode(node.getCode());//设置核心节点（任务节点）的code
    }

    @Override
    public void genViceNodes() {}//一般环节，没有除核心节点外的其他节点
}
